package net.haveraid.data;

import org.joda.time.DateMidnight;
import org.joda.time.DateTime;

public class RaidDate implements Comparable<DateTime> {
	private DateMidnight date;
	private Raid raid;

	public RaidDate(DateMidnight date, Raid raid) {
		this.date = date;
		this.raid = raid;
	}
	
	public DateMidnight getDate() {
		return date;
	}

	public void setDate(DateMidnight date) {
		this.date = date;
	}

	public Raid getRaid() {
		return raid;
	}

	public void setRaid(Raid raid) {
		this.raid = raid;
	}

	public boolean hasRaid() {
		return raid != null;
	}
	
	public boolean isToday() {
		return DateMidnight.now().equals(date);
	}

	@Override
	public int compareTo(DateTime o) {
		return this.date.compareTo(o);
	}
}
